package com.topvision.common.model;

import com.topvision.common.enumeration.StatusEnum;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;

/**
 * @author shengwm
 * @version V0.0.1
 * @Title: TreeEntity
 * @Package com.topvision.common.model
 * @Description: TODO
 * @date 2017/7/18 21:07
 */
@MappedSuperclass
public class TreeEntity extends DataEntity implements Serializable {

    /**
     * 父级编号
     */
    @Column(name = "parent_id")
    protected Long parentId;
    /**
     * 所有父级编号
     */
    @Column(name = "parent_ids")
    protected String parentIds;
    /**
     * 机构名称
     */
    @Column(name = "name")
    protected String name;
    /**
     * 排序
     */
    @Column(name = "sort")
    protected Integer sort;
    /**
     * 状态
     */
    @Column(name = "status")
    protected StatusEnum status;

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getParentIds() {
        return parentIds;
    }

    public void setParentIds(String parentIds) {
        this.parentIds = parentIds;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public StatusEnum getStatus() {
        return status;
    }

    public void setStatus(StatusEnum status) {
        this.status = status;
    }

}
